package cn.edu.scau.cmi.zhuangxipan.client;

import cn.edu.scau.cmi.zhuangxipan.client.*;
import javafx.fxml.FXML;
import javafx.scene.control.Button;
import javafx.event.ActionEvent;

public class Comprehensive_experimentController {
	String[] args;
	@FXML
	private Button E1;
	@FXML
	private Button E2;
	@FXML
	private Button E3;
	@FXML
	private Button E4;
	@FXML
	private Button E5;
	@FXML
	private Button E6;
	@FXML
	private Button E7;
	@FXML
	private Button E8;
	@FXML
	private Button E9;
	@FXML
	private Button E10;
	@FXML
	private Button E11;

	// Event Listener on Button[#E1].onAction
	@FXML
	public void A1(ActionEvent event) throws Exception{
		SingletonClient SC=new SingletonClient();
		SC.showWindow();
		// TODO Autogenerated
	}
	// Event Listener on Button[#E2].onAction
	@FXML
	public void A2(ActionEvent event) throws Exception{
		SingletonClient SC2=new SingletonClient();
		SC2.showWindow();
		// TODO Autogenerated
	}
	// Event Listener on Button[#E3].onAction
	@FXML
	public void A3(ActionEvent event) {
		SimpleFactoryMethodClient SFMC = new SimpleFactoryMethodClient();
    	SFMC.main(args);
		// TODO Autogenerated
	}
	// Event Listener on Button[#E4].onAction
	@FXML
	public void A4(ActionEvent event) {
		FactoryClient FC = new FactoryClient();
    	FC.main(args);
		// TODO Autogenerated
	}
	// Event Listener on Button[#E5].onAction
	@FXML
	public void A5(ActionEvent event) {
		AbstractFactoryClient AFC = new AbstractFactoryClient();
    	AFC.main(args);
		// TODO Autogenerated
	}
	// Event Listener on Button[#E6].onAction
	@FXML
	public void A6(ActionEvent event) throws Exception{
		AdapterClient aC = new AdapterClient();
    	aC.showWindow();
		// TODO Autogenerated
	}
	// Event Listener on Button[#E7].onAction
	@FXML
	public void A7(ActionEvent event) throws Exception{
		AdapterClient aC;
		try {
			aC = new AdapterClient();
			aC.showWindow();
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
    	
		// TODO Autogenerated
	}
	// Event Listener on Button[#E8].onAction
	@FXML
	public void A8(ActionEvent event) {
		SafeCompositeClient SCC = new SafeCompositeClient();
    	SCC.main(args);
		// TODO Autogenerated
	}
	// Event Listener on Button[#E9].onAction
	@FXML
	public void A9(ActionEvent event) {
		ConsistentCompositeClient CCC = new ConsistentCompositeClient();
    	CCC.main(args);
		// TODO Autogenerated
	}
	// Event Listener on Button[#E10].onAction
	@FXML
	public void A10(ActionEvent event) {
		SpringHibernateClient SHC = new SpringHibernateClient();
    	SHC.main(args);
		// TODO Autogenerated
	}
	// Event Listener on Button[#E11].onAction
	@FXML
	public void A11(ActionEvent event) {
		HibernateSessionFactoryClient HSFC = new HibernateSessionFactoryClient();
    	HSFC.main(args);
		// TODO Autogenerated
	}
}
